<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>按钮</button>
    我是一段文字

    <script>
        //onclick 鼠标点击左键触发
        //onmouseover 鼠标经过触发
        //onmouseout 鼠标离开触发
        //onfocus  获得鼠标焦点触发
        //onblur 失去鼠标焦点触发
        //onmousemove 鼠标移动触发
        //鼠标弹起触发
        //onmousedown 鼠标按下触发
        //禁止鼠标右键菜单 contexmenu 
        document.addEventListener('contextmenu',function(e){
            e.preventDefault();
        })

        //禁止鼠标选中文字（selectstart）
        document.addEventListener('selectstart',function(e){
            e.preventDefault();
        })
    </script>
</body>
</html>